<?xml version="1.0" encoding="${encode}"?>
<multi-siocs>
    <sioc namespace="${namespace}" extends="user">
        <bean id="userInterceptor" class="com.jspx.txweb.interceptor.UserInterceptor" singleton="true" >
            <boolean name="guestLogin">false</boolean>
        </bean>

        <bean id="defInterceptor" class="com.jspx.txweb.interceptor.PermissionInterceptor" singleton="true">
            <boolean name="permission">${'$'}{permission}</boolean>
            <array name="guestStopUrl" class="string">
                <value>/manage/main</value>
            </array>
            <array name="ruleOutUrl" class="string">
                <value>/user/index</value>
                <value>/user/login</value>
                <value>/user/reguser</value>
                <value>/user/registerrule</value>
                <value>/user/regedited</value>
                <value>/user/findpassword</value>
                <value>/user/58login</value>
                <value>/manage/login</value>
                <value>/manage/index</value>
                <value>/index</value>
                <value>/login</value>
            </array>
        </bean>

        <bean id="license" class="jspx.${namespace}.service.LicenseService" singleton="true" />
        <bean id="licenseInterceptor" class="com.jspx.txweb.interceptor.LicenseInterceptor" singleton="true" >
            <ref name="license">license</ref>
        </bean>

        <bean id="config" class="com.jspx.txweb.bundle.provider.DBBundleProvider" singleton="true">
            <ref name="soberFactory">jspxSoberFactory</ref>
            <string name="dataType">config</string>
            <string name="namespace">${namespace}</string>
        </bean>

        <bean id="language" class="com.jspx.txweb.bundle.provider.DBBundleProvider" singleton="true">
            <ref name="soberFactory">jspxSoberFactory</ref>
            <string name="namespace">${namespace}</string>
            <string name="dataType">zh_CN</string>
        </bean>
    </sioc>
    <sioc namespace="${namespace}/validator" extends="${namespace}">
        <bean id="validator" class="com.jspx.txweb.view.ValidatorView" singleton="true">
            <string name="configFile">${namespace}.validator.xml</string>
        </bean>
    </sioc>
    <sioc namespace="${namespace}/help" extends="${namespace}">
        <bean id="helper" class="com.jspx.txweb.view.HelperView" singleton="true">
            <string name="configFile">/${namespace}/help/${namespace}.help.xml</string>
        </bean>
    </sioc>
</multi-siocs>